package com.ssy.lingxi.platform.manage.api.hystrix.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.paas.SitePAASControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.site.SitePAASDTO;
import org.springframework.stereotype.Component;

@Component
public class SitePAASControllerFeignFallback implements SitePAASControllerFeign {

    @Override
    public Wrapper<?> add(SitePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> delete(SitePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> details(Long id) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> update(SitePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> updateState(SitePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }
}
